
import 'package:flutter/material.dart';
import 'package:interactive_viewer_2/interactive_viewer_2.dart';

class InteractiveViewer2Page extends StatelessWidget {
  const InteractiveViewer2Page({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('InteractiveViewer2'),
      ),
      body: buildInteractiveViewer2Widget( context)
    );
  }

  Widget buildInteractiveViewer2Widget(BuildContext context) {
    return InteractiveViewer2(
      child:Column(
        children: [

          Container(
            width: 800,
            height: 800,
            color: Colors.red,
            child: const Center(
              child: Text('InteractiveViewer2'),
            ),
          ),
        ],
      )
    );
  }
}